package com.qf.blogsystem.service;

import com.qf.blogsystem.core.service.BaseService;
import com.qf.blogsystem.entity.Comment;
import com.qf.blogsystem.vo.CommentVo;

import java.util.List;

/**
 * @author Crazy
 * @version 1.0
 * @description: 评论业务层接口
 * @date 2022/12/6 11:47
 */
public interface CommentService extends BaseService<Comment> {
    /**
     * 根据被评论的实体id查询评论信息
     * @param entityType
     * @param entityId
     * @return List<CommentVo>
     * @throws Exception
     */
    List<CommentVo> commentListByEntityId(Integer entityType ,Integer entityId) throws Exception;
}
